﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using Business_Layer;

namespace Control_Layer
{
    // See UseCase:
    // UCD07-RUN (01)
    public class CCRunPresentation
    {
        private Service service;
        private Project project;

        public CCRunPresentation()
        {
            service = Service.GetInstance;
            project = service.GetProject;
        }

        /// <summary>
        /// Generates a new presentation.
        /// </summary>
        public void AddPresentation()
        {
            project.AddPresentation();
        }

        /// <summary>
        /// Shows the first dia.
        /// </summary>
        /// <param name="screen">Screen to draw on.</param>
        /// <returns></returns>
        public Bitmap Show(Bitmap screen)
        {
            return project.GetInitialDia(screen);
        }

        /// <summary>
        /// Shows the dia next on the list.
        /// </summary>
        /// <param name="screen">Screen to draw on.</param>
        /// <returns></returns>
        public Bitmap NextDia(Bitmap screen)
        {
            return project.GetDia(screen, Index.Next);
        }

        /// <summary>
        /// Show the dia previous on the list.
        /// </summary>
        /// <param name="screen">Screen to draw on.</param>
        /// <returns></returns>
        public Bitmap PreviousDia(Bitmap screen)
        {
            return project.GetDia(screen, Index.Previous);
        }
    }
}
